`
<template>
  <div class="index">
    <Header></Header>
    <section class="hero">
      <div class="app-main">
        <img src="@/assets/index/text.png" class="textImg" alt="" />
        <p>
          AI全程助力，从构思到正文，一键完成，快速创作，快速发布，快速变现赚钱！
        </p>
        <el-button type="primary" size="large" @click="$router.push('/')"
          >立即使用</el-button
        >
        <img src="@/assets/index/1.png" alt="" class="indexImg" />
      </div>
    </section>
    <div class="app-content">
      <div class="app-main">
        <section class="features">
          <div class="app-title">六大创作阶段</div>
          <div class="app-text">从创意到成品，每一步都被精准设计</div>
          <div class="feature-grid">
            <div
              v-for="(feature, index) in features"
              :key="index"
              class="feature-card"
              :style="`--card-color:${feature.bgColor};--card-num-color:${feature.numColor}`"
            >
              <div class="head">
                <div class="icon"><img :src="feature.img" alt="" /></div>
                <div class="num">0{{ index + 1 }}</div>
              </div>
              <div class="title">{{ feature.title }}</div>
              <div class="text">{{ feature.text }}</div>
              <div class="description" v-html="feature.description"></div>
            </div>
          </div>
        </section>
        <section class="ai-tools">
          <div class="app-title">300+AI工具，自由组合</div>
          <div class="app-text">编排技术一键生成，助您快速创作</div>
          <div class="tools-cloud">
            <img src="@/assets/index/2.png" alt="" class="aiImg" />
          </div>
        </section>
        <section class="ai-guide">
          <div class="app-title">配置AI创作导引</div>
          <div class="app-text">
            没有问答，没有复杂决策，精准引导每一步，快速实现您的写作梦想
          </div>
          <img src="@/assets/index/3.png" class="guideImg" alt="" />
        </section>
        <section class="ai-chat">
          <div class="app-title">AI多轮对话</div>
          <div class="app-text">
            每个细节，AI
            都深思熟虑，精准拿捏创作方向，助您精雕细琢，让作品臻于完美
          </div>
          <img src="@/assets/index/4.png" class="chatImg" alt="" />
        </section>
      </div>
    </div>
    <section class="cta">
      <h2>加入文学炼金术，释放创作潜能，炼就精彩文学作品</h2>
      <p>
        文学炼金术不仅仅是创作工具，更是创作者的灵感助手和创作伙伴。我们致力于为每一位创作者提供专业的写作支持，让创作更加轻松自如。
      </p>
      <el-button type="primary" size="large" @click="$router.push('/')"
        >立即使用</el-button
      >
    </section>
    <footer class="app-footer">
      <div class="text">Copyright © 2024 北京智谱华章科技有限公司</div>
      <div class="text">京ICP备20011824号-24</div>
      <div class="text">沪公网安备31010702008387</div>
    </footer>
  </div>
</template>

<script>
import Header from "@/components/Header";

export default {
  name: "App",
  components: {
    Header,
  },
  data() {
    return {
      activeIndex: "1",
      books: [
        { title: "太古野", cover: "/images/book1.jpg" },
        { title: "万剑谱", cover: "/images/book2.jpg" },
        // Add more books as needed
      ],
      navList: ["产品介绍", "使用文档"],
      features: [
        {
          bgColor: "linear-gradient( 180deg, #E9F4FF 0%, #F5FAFF 100%)",
          numColor: "#3298FF",
          img: require("@/assets/index/icon_ai01.svg"),
          title: "背景设定",
          text: "构建世界观",
          description: `全景设计： 
          构建一个完整、复杂、且有说服力的世界，为后续情节的发展提供可信的基础。`,
        },
        {
          bgColor: "linear-gradient( 180deg, #ECECFF 0%, #FEF8FE 100%)",
          numColor: "#6B60FF",
          img: require("@/assets/index/icon_ai02.svg"),
          title: "构思大纲",
          text: "架宏观叙事框架",
          description: `全景设计： 
          为整个故事提供核心结构，明确故事的整体发展方向和叙事逻辑。`,
        },
        {
          bgColor: "linear-gradient( 180deg, #FEF0E4 0%, #FFFBF7 100%);",
          numColor: "#FFA451",
          img: require("@/assets/index/icon_ai03.svg"),
          title: "编写细纲",
          text: "规划分卷叙事",
          description: `
          精准规划： 
          分成若干独立但相互关联的卷，每一卷田绕特定的主题或清节阶段展开，确保长篇作品的节委感和层次感。`,
        },
        {
          bgColor: "linear-gradient( 180deg, #DFF5F2 0%, #F5FCFB 100%);",
          numColor: "#38D0BB",
          img: require("@/assets/index/icon_ai04.svg"),
          title: "制定章纲",
          text: "设定章节布局",
          description: `
          智能调整：
          将总体框架进一步细化到每一章的具体内容、节奏、情节发展和主题表达。`,
        },
        {
          bgColor: "linear-gradient( 180deg, #ECECFF 0%, #FEF8FE 100%);",
          numColor: "#6B60FF",
          img: require("@/assets/index/icon_ai05.svg"),
          title: "正文写作",
          text: "主体文本创作",
          description: `
          高效创作： 
          将之前的背景设定、叙事框架、分卷规划和章纲转化为实际的文本内容。`,
        },
        {
          bgColor: "linear-gradient( 180deg, #EBF1FF 0%, #F9FBFF 100%);",
          numColor: "#5286FF",
          img: require("@/assets/index/icon_ai06.svg"),
          title: "文章润色",
          text: "文本编辑与打磨",
          description: `
          全面打磨： 
          对已完成的主体文本进行修改和完善，包括提高语吉质品、修正湿辑问题、强化人物和情节的表现力等。`,
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.index {
  background: linear-gradient(135deg, #e6f3ff 0%, #f5f7fa 100%);
}

.app-main {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px;
}

.app-content {
  border-radius: 32px 32px 0px 0px;
  background: #fff;
  box-shadow: 0px -2px 18px 0px rgba(0, 37, 146, 0.05);
  margin-top: -200px;
  position: relative;
  z-index: 1;
}

.app-title {
  color: #00011b;
  text-align: center;
  font-family: "Alibaba PuHuiTi 3.0";
  font-size: 34px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.app-text {
  color: rgba(0, 1, 27, 0.7);
  text-align: center;
  font-family: "Alibaba PuHuiTi 3.0";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1px;
  margin-top: 16px;
}

.header {
  background: #fff;

  .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
  }

  .lf {
    display: flex;
    align-items: center;

    .logo {
    }

    .nav {
      display: flex;
      align-items: center;

      .li {
        margin-left: 48px;
        font-weight: 500;
        font-size: 16px;
        color: #00011b;
        cursor: pointer;
      }

      .li:hover {
        color: #165deb;
      }
    }
  }

  .nav-menu {
    border: none;
  }

  .auth-buttons {
    display: flex;
    gap: 10px;
  }
}

.hero {
  text-align: center;
  margin-top: 80px;

  h1 {
    background: linear-gradient(90deg, #1fa9ff 0%, #4415ff 99.9%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 48px;
    font-style: normal;
    font-weight: 800;

    span {
      background: linear-gradient(#ffc05c, #ff7d0c);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  p {
    color: #000;

    text-align: center;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    /* 38.4px */
    letter-spacing: 1.2px;
    margin: 18px 0 40px 0;
  }

  .el-button {
    width: 190px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(270deg, #1060ff 0%, #177cff 100%);
    color: #fff;

    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .indexImg {
    width: 100%;
    margin-top: 80px;
  }
}

.book-showcase {
  padding: 60px 20px;

  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }

  .book-card {
    text-align: center;

    img {
      width: 100%;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    h3 {
      margin-top: 15px;
      font-size: 16px;
      color: #303133;
    }
  }
}

.features {
  padding-top: 100px;

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 88px;
  }

  .feature-card {
    width: 213px;
    height: 336px;
    background: var(--card-color);
    border-radius: 16px 16px 16px 16px;
    padding: 24px 20px;
    box-sizing: border-box;

    .head {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .icon {
        width: 40px;
        height: 40px;
        background: #ffffff;
        border-radius: 8px 8px 8px 8px;
        padding: 6px;
        box-sizing: border-box;
      }

      .num {
        font-weight: 600;
        font-size: 48px;
        color: var(--card-num-color);
        line-height: 56px;
        opacity: 0.1;
      }
    }

    .title {
      color: var(--color-, #00011b);
      font-family: "Alibaba PuHuiTi 3.0";
      font-size: 20px;
      font-style: normal;
      font-weight: 600;
      line-height: normal;
      margin: 8px 0;
    }

    .text {
      color: var(--color-, #00011b);
      font-family: "Alibaba PuHuiTi 3.0";
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }

    .description {
      color: var(--color-, #00011b);
      text-align: justify;
      font-family: "Alibaba PuHuiTi 3.0";
      font-size: 16px;
      font-style: normal;
      font-weight: 300;
      line-height: 150%;
      /* 24px */
      margin-top: 18px;
    }
  }
}

.ai-tools {
  text-align: center;
  margin-top: 120px;

  .tools-cloud {
    margin-top: 16px;
    text-align: center;

    img {
      width: 826px;
    }
  }
}

.ai-guide {
  margin-top: 48px;

  img {
    width: 100%;
    margin-top: 64px;
  }
}

.ai-chat {
  padding: 120px 0;

  img {
    width: 100%;
    margin-top: 64px;
  }
}

.cta {
  text-align: center;
  padding: 120px 40px 166px 40px;
  background: linear-gradient(135deg, #e6f3ff 0%, #f5f7fa 100%);

  h2 {
    color: var(--color-, #00011b);
    text-align: center;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
  }

  p {
    color: rgba(0, 1, 27, 0.7);
    text-align: center;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin: 32px auto 48px auto;
    max-width: 1160px;
  }

  .el-button {
    width: 190px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(270deg, #1060ff 0%, #177cff 100%);
    color: #fff;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }
}

.app-footer {
  background: #343845;
  height: 37px;
  display: flex;
  justify-content: center;
  align-items: center;

  .text {
    color: #fff;
    text-align: center;
    font-family: "Alibaba PuHuiTi 3.0";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .text + .text {
    margin-left: 9px;
  }
}
</style>
